package FunctionalLibrary;


import org.testng.ITestContext;
 
import org.testng.ITestListener;
 
import org.testng.ITestResult;
 
public class customReporter implements ITestListener{
 
    @Override
    public void onStart(ITestContext arg0) 
    {
         System.out.println("Start Of Execution(TEST)--onStart-->"+arg0.getName());
    }
 
    @Override
    public void onTestStart(ITestResult arg0) 
    {
        System.out.println("Test Started--onTestStart--->"+arg0.getName());
    }
    
    @Override
    public void onTestSuccess(ITestResult arg0) 
    {
        System.out.println("Test Pass--onTestSuccess--->"+arg0.getName());
    }
    
    @Override
    public void onTestFailure(ITestResult arg0) 
    {
        System.out.println("Test Failed--onTestFailure-->"+arg0.getName());
    }
    
    @Override
    public void onTestSkipped(ITestResult arg0) 
    {
        System.out.println("Test Skipped--onTestSkipped-->"+arg0.getName());
    }
    
    @Override
    public void onFinish(ITestContext arg0) 
    {
    	System.out.println("END Of Execution(TEST)-- getname->"+arg0.getName());
    	System.out.println("On Finish -- gethost->"+arg0.getHost());
    	System.out.println("On Finish -- getSuite ->"+arg0.getSuite());
    	System.out.println("On Finish -- getFailedTests ->"+arg0.getFailedTests());
    	System.out.println("On Finish -- getPassedTests ->"+arg0.getPassedTests());
    	System.out.println("On Finish -- getFailedButWithinSuccessPercentageTests ->"+arg0.getFailedButWithinSuccessPercentageTests());
    }
 
    @Override
    public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) 
    {
    	//System.out.println("On Finish -- onTestFailedButWithinSuccessPercentage ->"+arg0.FAILURE);
        // TODO Auto-generated method stub

    } 
}
